<?php
	class accessList{
		public static $acl = false;
		public static $aclBaseKey = null;
		public static $pageList = null;
		public static function getUserAttribute($key,$value){
				foreach (passwd::$users as $users){
					if(array_key_exists($key, $users)){
						if($users[$key]==$value){
							return $users;
						}
					}
				}
			}
		public static function setAclPages($values){
			accessList::$pageList=$values;
		}
		public static function checkUser($user){
			if(array_key_exists($user, accessList::$pageList)){
				return true;
			}else{
				return false;
			}
		}
	}